package tdca.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;

public class TDCA extends Activity
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tdca);
    }

    @Override
    protected void onResume() {
        super.onResume();    //To change body of overridden methods use File | Settings | File Templates.
        Toast.makeText(TDCA.this,"系统正在努力加载中",Toast.LENGTH_LONG).show();
        new Thread(new Runnable() {
            public void run() {
                //To change body of implemented methods use File | Settings | File Templates.
                try {
                    Thread.sleep(3000);
                    Intent intent = new Intent(TDCA.this,MainActivity.class);
                    startActivity(intent);
                    TDCA.this.finish();
                } catch (InterruptedException e) {
                    e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
                }
            }
        }).start();
    }
}
